# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nota
pkgver=1.1.1
pkgrel=0
pkgdesc="Nota is a simple and convergent text editor"
# armhf blocked by qt5-qtdeclarative
# s390x, ppc64le, mips and mips64 blocked by qt5-qtwebengine
arch="all !armhf !s390x !ppc64le !mips !mips64"
url="https://invent.kde.org/kde/nota"
license="GPL-2.0-or-later"
depends="mauikit"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg qt5-qtwebengine-dev mauikit-dev ki18n-dev knotifications-dev kconfig-dev kio-dev attica-dev syntax-highlighting-dev"
source="https://invent.kde.org/maui/nota/-/archive/v$pkgver/nota-v$pkgver.tar.gz"
options="!check" # No tests available
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="c517b0416031cb3d5254f17703626f5031ba636e6f557c7cf81ec520f5a41e6af68e7288594daefcaeeba5213953bf895bb3056247be4feb093d290ac0b2f8bf  nota-v1.1.1.tar.gz"
